package org.example.commerce.api.beans;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ModifyUserParam {
    @NotNull(message = "用户ID不能为空")
    private Integer id;
    @NotNull(message = "用户名不能为空")
    private String username;
    @NotNull(message = "名字不能为空")
    private String name;
    @NotNull(message = "密码不能为空")
    private String password;
    private String sex;
    @NotNull(message = "账号不能为空")
    private String phoneNumber;
}
